ποΈGitΠ―ΡΠ°ποΈ
Node / meshtastic / Meshtastic-Android / files / .github / agents / speckit.brownfield.validate.agent.md
Displaying Raw β’ View rendered β’ Download
.github/agents/speckit.brownfield.validate.agent.md 41366bb48d5dc06c1da80d2d723848ec29fb12bc (41366bb4) Text, 4.14 KB
---
Tc9d1d9description: Verify bootstrap output matches actual project structure and conventions
Tc9d1d9---
<!-- Extension: brownfield -->
<!-- Config: .specify/extensions/brownfield/ -->
Tc9d1d9# Validate Bootstrap
Verify that the spec-kit configuration generated by Ta5d6ff`/speckit.brownfield.bootstrap` accurately reflects the actual project structure, conventions, and architecture. Reports mismatches and suggests corrections.
Tc9d1d9## User Input
Ta5d6ff```Ta5d6fftext
$ARGUMENTS
Ta5d6ff```
You **MUST** consider the user input before proceeding (if not empty). The user may specify a focus area (e.g., "only constitution", "only templates") or request verbose output.
Tc9d1d9## Prerequisites
Tff7b721. Verify a spec-kit project exists by checking for Ta5d6ff`.specify/` directory
Tff7b722. Verify git is available and the project is a git repository
Tff7b723. Verify at least one bootstrap artifact exists (constitution, customized templates, or AGENTS.md)
Tc9d1d9## Outline
Tff7b721. **Validate constitution**: Check Ta5d6ff`.specify/memory/constitution.md` against the actual codebase:
| Check | How |
|-------|-----|
| **Language references** | Verify mentioned languages actually exist in the codebase |
| **Directory references** | Verify all referenced paths (Ta5d6ff`client/`, Ta5d6ff`server/`, etc.) exist |
| **Framework references** | Verify mentioned frameworks are in dependency files |
| **Naming conventions** | Sample 20 files and check if naming rules match reality |
| **Test location** | Verify test directories mentioned in constitution exist |
| **Branch pattern** | Check if branch naming rules match actual branches in Ta5d6ff`git branch -a` |
Tff7b722. **Validate templates**: Check customized spec/plan/tasks templates:
| Check | How |
|-------|-----|
| **Module references** | Verify template sections reference actual modules/directories |
| **Test commands** | Verify test commands in tasks template actually work |
| **Build commands** | Verify build commands reference real scripts from package files |
| **Section relevance** | Flag template sections that reference non-existent project aspects |
Tff7b723. **Validate AGENTS.md** (if exists): Check agent configuration:
| Check | How |
|-------|-----|
| **Directory ownership** | Verify each agent's directories exist |
| **No overlaps** | Check that no directory is owned by multiple agents |
| **No orphans** | Check that all source directories are covered by at least one agent |
Tff7b724. **Detect drift**: Check if the project has changed since bootstrap:
Tff7b72- New directories or modules added since constitution was generated
Tff7b72- Dependencies added or removed since bootstrap
Tff7b72- New branch patterns that don't match constitution rules
Tff7b725. **Output validation report**:
Ta5d6ff ```Ta5d6ffmarkdown
# Validation Report
## Constitution
| Rule | Status | Detail |
|------|--------|--------|
| Primary language: TypeScript | β
Pass | 68% of source files |
| Frontend in Ta5d6ff`client/` | β
Pass | Directory exists, contains React code |
| Backend in Ta5d6ff`server/` | β
Pass | Directory exists, contains FastAPI code |
| Test location: Ta5d6ff`__tests__/` | β οΈ Drift | Also found tests in Ta5d6ff`tests/` (not mentioned) |
| Branch pattern: Ta5d6ff`feat/*` | β
Pass | 8/10 recent branches match |
## Templates
| Template | Status | Detail |
|----------|--------|--------|
| Spec template | β
Pass | All custom sections map to real project aspects |
| Plan template | β οΈ Drift | References Ta5d6ff`shared/` module β directory renamed to Ta5d6ff`common/` |
| Tasks template | β
Pass | Test commands verified |
## Summary
Tff7b72- **Checks passed**: 9/11
Tff7b72- **Drift detected**: 2 items
Tff7b72- **Action needed**: Update plan template (Ta5d6ff`shared/` β Ta5d6ff`common/`), add Ta5d6ff`tests/` to constitution
Ta5d6ff ```
Tc9d1d9## Rules
Tff7b72- **Read-only** β this command never modifies any files
Tff7b72- **Evidence-based** β every pass/fail must cite specific files or directories as evidence
Tff7b72- **Actionable output** β for every failure or drift, suggest the specific fix
Tff7b72- **Non-blocking** β drift warnings don't mean the configuration is broken, just that it could be improved
Tff7b72- **Respect .gitignore** β never scan ignored directories when validating
Served by rngit 1.5.2 - Generated in 0.05s